package com.gzcstec.user.exception;

import com.gzcstec.user.enums.ExceptionCodeEnums;

/**
 * 订单exception类
 */
public class UserException extends RuntimeException {

    private Integer code;
    private String message;

    public UserException(ExceptionCodeEnums exceptionCodeEnums , String message) {
        super(message);
        this.code = exceptionCodeEnums.getCode();
    }

    public UserException(ExceptionCodeEnums exceptionCodeEnums) {
        super(exceptionCodeEnums.getMessage());
        this.code = exceptionCodeEnums.getCode();
    }

}
